package cn.juque.common.utils;

import cn.hutool.core.util.ObjectUtil;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>SqlHelper</li>
 * </ul>
 * @date 2022-10-24 18:02:35
 **/
public class SqlHelper {

    private static String dbType = "mysql";

    private SqlHelper() {
    }

    public static void setDbType(String type) {
        dbType = type;
    }

    public static Boolean isNotEmpty(Object value) {
        return ObjectUtil.isNotEmpty(value);
    }

    public static String leftLike(Object value) {
        return "%" + value;
    }

    public static String rightLike(Object value) {
        return value + "%";
    }

    public static String allLike(Object value) {
        return "%" + value + "%";
    }
}
